import 'package:kkhousekeep/generated/json/base/json_convert_content.dart';
import 'package:kkhousekeep/models/me_room_new_msg_entity.dart';

MeRoomNewMsgEntity $MeRoomNewMsgEntityFromJson(Map<String, dynamic> json) {
	final MeRoomNewMsgEntity meRoomNewMsgEntity = MeRoomNewMsgEntity();
	final int? code = jsonConvert.convert<int>(json['code']);
	if (code != null) {
		meRoomNewMsgEntity.code = code;
	}
	final MeRoomNewMsgObj? obj = jsonConvert.convert<MeRoomNewMsgObj>(json['obj']);
	if (obj != null) {
		meRoomNewMsgEntity.obj = obj;
	}
	final String? msg = jsonConvert.convert<String>(json['msg']);
	if (msg != null) {
		meRoomNewMsgEntity.msg = msg;
	}
	return meRoomNewMsgEntity;
}

Map<String, dynamic> $MeRoomNewMsgEntityToJson(MeRoomNewMsgEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['code'] = entity.code;
	data['obj'] = entity.obj.toJson();
	data['msg'] = entity.msg;
	return data;
}

MeRoomNewMsgObj $MeRoomNewMsgObjFromJson(Map<String, dynamic> json) {
	final MeRoomNewMsgObj meRoomNewMsgObj = MeRoomNewMsgObj();
	final bool? exist = jsonConvert.convert<bool>(json['exist']);
	if (exist != null) {
		meRoomNewMsgObj.exist = exist;
	}
	return meRoomNewMsgObj;
}

Map<String, dynamic> $MeRoomNewMsgObjToJson(MeRoomNewMsgObj entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['exist'] = entity.exist;
	return data;
}